package com.ruoyi.chat.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 群对象 chat_group
 *

 * @date 2023-07-23
 */
public class ChatGroup extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 群id
     */
    private Long groupId;

    /**
     * 群昵称
     */
    @Excel(name = "群昵称")
    private String groupName;

    /**
     * 商家id
     */
    @Excel(name = "商家id")
    private Long businessId;

    /**
     * 群状态（正常、禁用）
     */
    @Excel(name = "群状态", readConverterExp = "正=常、禁用")
    private Long groupStatus;

    /**
     * 群介绍
     */
    @Excel(name = "群介绍")
    private String introduce;

    /**
     * 用户数
     */
    @Excel(name = "用户数")
    private Long userNum;

    /**
     * 群头像
     */
    @Excel(name = "群头像")
    private String headImage;


    @Excel(name = "商家信息")
    private ChatUser chatUser;

    @Excel(name = "群好友")
    private List<ChatUser> userList;

    public List<ChatUser> getUserList() {
        return userList;
    }

    public void setUserList(List<ChatUser> userList) {
        this.userList = userList;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public Long getBusinessId() {
        return businessId;
    }

    public void setGroupStatus(Long groupStatus) {
        this.groupStatus = groupStatus;
    }

    public Long getGroupStatus() {
        return groupStatus;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setUserNum(Long userNum) {
        this.userNum = userNum;
    }

    public Long getUserNum() {
        return userNum;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public String getHeadImage() {
        return headImage;
    }

    public ChatUser getChatUser() {
        return chatUser;
    }

    public void setChatUser(ChatUser chatUser) {
        this.chatUser = chatUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("groupId", getGroupId())
                .append("businessId", getBusinessId())
                .append("groupStatus", getGroupStatus())
                .append("introduce", getIntroduce())
                .append("userNum", getUserNum())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("headImage", getHeadImage())
                .toString();
    }
}
